package com.numberone.system.domain;


import com.numberone.common.annotation.Excel;
import com.numberone.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;
import java.util.Date;

/**
 * 人员借调申请表 sys_saq
 * 
 * @author numberone
 * @date 2019-06-10
 */
public class Saq extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 人员借调申请表ID */
	private Long saqId;
	/** 用户ID */
	private Long userId;

	/** 用户名 */
	@Excel(name = "用户名")
	@Transient
	private String userName;

	/** 部门名称 */
	@Transient
	@Excel(name = "部门名称")
	private String deptName;

	/** 人员借调申请表编号 */
	@Excel(name = "申请编号")
	private String saqNum;

	@Excel(name = "需求工种1:常工")
	/** 需求人力工种1:常工 */
	private Long requestedone;

	@Excel(name = "需求工种2:普工")
	/** 需求人力工种2:普工 */
	private Long requestedtwo;

	@Excel(name = "需求开始时间")
	/** 需求开始时间 */
	private String startTime;

	@Excel(name = "需求结束时间")
	/** 需求结束时间 */
	private String finishTime;

	@Excel(name = "支持项目")
	/** 支持项目 */
	private String supportingProject;

	@Excel(name = "客户")
	/** 客户 */
	private String customer;

	@Excel(name = "备注")
	/** 备注 */
	private String remark;

	/** 0待部门经理审核，1待生产部门审核，2待MD主管录入，3已完成录入 */
	private Long status;

	/** 删除标志（0代表存在 2代表删除） */
	private String delFlag;

	@Excel(name = "申请人")
	/** 创建者 */
	private String createBy;

	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;




	public void setSaqId(Long saqId)
	{
		this.saqId = saqId;
	}

	public Long getSaqId()
	{
		return saqId;
	}
	public void setUserId(Long userId)
	{
		this.userId = userId;
	}

	public Long getUserId()
	{
		return userId;
	}
	public void setSaqNum(String saqNum) 
	{
		this.saqNum = saqNum;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getSaqNum()
	{
		return saqNum;
	}
	public void setRequestedone(Long requestedone)
	{
		this.requestedone = requestedone;
	}

	public Long getRequestedone()
	{
		return requestedone;
	}
	public void setRequestedtwo(Long requestedtwo)
	{
		this.requestedtwo = requestedtwo;
	}

	public Long getRequestedtwo()
	{
		return requestedtwo;
	}
	public void setStartTime(String startTime)
	{
		this.startTime = startTime;
	}

	public String getStartTime()
	{
		return startTime;
	}
	public void setFinishTime(String finishTime)
	{
		this.finishTime = finishTime;
	}

	public String getFinishTime()
	{
		return finishTime;
	}
	public void setSupportingProject(String supportingProject)
	{
		this.supportingProject = supportingProject;
	}

	public String getSupportingProject() 
	{
		return supportingProject;
	}
	public void setCustomer(String customer) 
	{
		this.customer = customer;
	}

	public String getCustomer() 
	{
		return customer;
	}
	public void setStatus(Long status)
	{
		this.status = status;
	}

	public Long getStatus()
	{
		return status;
	}
	public void setDelFlag(String delFlag) 
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag() 
	{
		return delFlag;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("saqId", getSaqId())
            .append("userId", getUserId())
            .append("saqNum", getSaqNum())
            .append("requestedone", getRequestedone())
            .append("requestedtwo", getRequestedtwo())
            .append("startTime", getStartTime())
            .append("finishTime", getFinishTime())
            .append("supportingProject", getSupportingProject())
            .append("customer", getCustomer())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
